// 导出excel js
import axios from 'axios'
export default function export_files(URLs , data){
  /*
    * @URLs: 请求地址路径
    * @data: 请求传参
    * @user: wqz
  * */
      var url = process.env.VUE_APP_BASE_imgUrl+URLs
      console.log(url)
      return  new Promise(function(resolve , reject) {
        axios({
            url: url,
            method: 'post',
            data,
            headers: {
              'Content-Type': 'multipart/form-data',
            }
        }).then(res => {
          resolve(res.data)
        }).catch(err => {
          this.$message({
            type:'error',
            message:'Download failed'
          })
        });
      });

}
